﻿using System;
using System.Collections.Generic;

namespace Chengqbd.Core.Common
{
    /// <summary>
    /// 分页对象
    /// </summary>
    /// <typeparam name="TEntity"></typeparam>
	public class PagedList<TEntity> where TEntity : class
	{

		public PagedList()
		{
		}

		public PagedList(IList<TEntity> entities, int total)
		{
			this.ItemList = entities;
			this.ItemTotal = total;
		}

		public int ItemTotal { get; set; }

		public IList<TEntity> ItemList { get; set; } = new List<TEntity>();
	}
}
